import request from '@/common/request.js';

//获取app最新版本号
export function getAPPVersion(params) {
	// let base_url = 'http://acm.donnan.cn:3023/';
    
    let baseApiUrl = uni.getStorageSync("baseApiUrl");
    let base_url = 'http://' + baseApiUrl + '/';
	
    if(baseApiUrl != "" && baseApiUrl != null && baseApiUrl != undefined){
        return request.httpRequest({
            url: base_url + 'api/AppIndexNew/getAppVersionInfo',
            method: 'post',
            loading: true,
            requestHeader: {
                'Content-Type': 'application/x-www-form-urlencoded'
            }
        }, params);
    }
}

